<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>

<%--
  Created by IntelliJ IDEA.
  User: Media
  Date: 2022/10/4
  Time: 15:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>结果</title>
</head>
<body>
购物车中的内容为：
<br>
<%
    request.setCharacterEncoding("utf-8");

    ArrayList books = (ArrayList)session.getAttribute("books");

    for(int i = 0;i<books.size();i++)
    {
        String book = (String) books.get(i);
        out.print(book + "<br>");
    }
%>
</body>
</html>
